import yaml


class YamLoad:


    # 指定YAML文件的绝对路径

    def loadd(self,file_path):
        with open(file_path, 'r', encoding='utf-8') as file:
            data = yaml.safe_load(file)
            # 将YAML数据转换为列表格式
            data_list = []
            data_list.append(data)


        return data_list









